package cn.factorybox.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-11-21 17:14
 */
public class Company implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;  // 主键id
    private String master;  // 主管名称
    private String name;    // 公司名称
    private String boss;    // 公司主管名称
    private String slogan;  // 公司标语
    private String position;    // 公司定位
    private Integer offices;    // 公司规模

    @JsonProperty("intro")
    private String introduce;   // 公司介绍

    private String icon;    // 图片名称

    @JsonProperty("bg")
    private String background;  // 公司风貌图片名称

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;    // 创建日期

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getOffices() {
        return offices;
    }

    public void setOffices(Integer offices) {
        this.offices = offices;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Company{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", boss='" + boss + '\'' +
                ", slogan='" + slogan + '\'' +
                ", position='" + position + '\'' +
                ", offices=" + offices +
                ", introduce='" + introduce + '\'' +
                ", icon='" + icon + '\'' +
                ", background='" + background + '\'' +
                ", cCreateTime=" + createTime +
                '}';
    }
}
